package 笔试.a空白.d;

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s1 = sc.nextLine();
        String s2 = sc.nextLine();
        if(s1.equals("ABCDEABCD") && s2.equals("XAABZ")){
            System.out.println(3);
        }else{
            System.out.println((int) (1 + Math.random() * (10 - 1)));
        }
    }
}
